﻿using black_screen_mode_server.Pages;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace black_screen_mode_server.Models
{
    public class ListInfo:INotifyPropertyChanged
    {
        private int id;
        public int Id {
            get 
            {
                return id;
            } 
            set
            {
                id = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Id)));
            }
        }

        private string groupName;
        public string GroupName { 
            get
            {
                return groupName;
            }
            set
            {
                groupName = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(GroupName)));
            }
        }

        private string areaName;
        public string AreaName 
        {
            get
            {
                return areaName;
            }
            set
            {
                areaName = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(AreaName)));
            }
        }

        private int category;
        public int Category 
        {
            get
            {
                return category;
            }
            set
            {
                category = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Category)));
            }
        }

        private string eventType;
        public string EventType 
        {
            get
            {
                return eventType;
            }
            set
            {
                eventType = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(EventType)));
            }
        }

        private string block;
        public string Block 
        {
            get
            {
                return block;
            }
            set
            {
                block = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Block)));
            }
        }


        private string source;
        public string Source
        {
            get
            {
                return source;
            }
            set
            {
                source = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Source)));
            }
        }

        public event PropertyChangedEventHandler? PropertyChanged;

    }
}
